GCC := gcc
LD  := ld
CCFLAG := -I../include -nostdinc -ffreestanding -Wall -fomit-frame-pointer -fno-stack-protector -fno-pic -c -m32
LDFLAG := -Ttext 0x0 -s --oformat binary -m elf_i386
INCDIR := ../include
OBJS   := read_write.o buffer.o

fs.o : $(OBJS)
	$(LD) -m elf_i386 -r -o $@ $^

read_write.o : read_write.c
	$(GCC) $(CCFLAG) -o $@ $<

buffer.o : buffer.c
	$(GCC) $(CCFLAG) -o $@ $<

clean : 
	rm *.o

